package com.pcjavanet.collect.mes.to;

import java.io.Serializable;
import java.util.Date;

public class ActivityData implements Serializable {
	/**	serialVersionUID */
	private static final long serialVersionUID = 1L;
	
	private int activityId;
	private int dataId;
	private String sn = "";
	private double defects = 0.0;
	private long aDataTime = 0;
	private long serialKey = 0;
	private String defectCode = "";
	private String  container ="";
	private String chartType;
	private Date time;
	private String timeStr;
 
	public int getActivityId() {
		return activityId;
	}
	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}
	
	public int getDataId() {
		return dataId;
	}
	public void setDataId(int dataId) {
		this.dataId = dataId;
	}
	public String getDefectCode() {
		return defectCode;
	}
	public void setDefectCode(String defectCode) {
		this.defectCode = defectCode;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public double getDefects() {
		return defects;
	}
	public void setDefects(double defects) {
		this.defects = defects;
	}
	
	public long getADataTime() {
		return aDataTime;
	}
	public void setADataTime(long aDataTime) {
		this.aDataTime = aDataTime;
	}
	public long getSerialKey() {
		return serialKey;
	}
	public void setSerialKey(long serialKey) {
		this.serialKey = serialKey;
	}
	
	public String getChartType() {
		return chartType;
	}
	public void setChartType(String chartType) {
		this.chartType = chartType;
	}
	public String getContainer() {
		return container;
	}
	
	//save the part number or batch name
	public void setContainer(String container) {
		this.container = container;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getTimeStr() {
		return timeStr;
	}
	public void setTimeStr(String timeStr) {
		this.timeStr = timeStr;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ActivityData [activityId=");
		builder.append(activityId);
		builder.append(", dataId=");
		builder.append(dataId);
		builder.append(", sn=");
		builder.append(sn);
		builder.append(", defects=");
		builder.append(defects);
		builder.append(", aDataTime=");
		builder.append(aDataTime);
		builder.append(", serialKey=");
		builder.append(serialKey);
		builder.append(", defectCode=");
		builder.append(defectCode);
		builder.append(", container=");
		builder.append(container);
		builder.append(", chartType=");
		builder.append(chartType);
		builder.append(", time=");
		builder.append(time);
		builder.append(", timeStr=");
		builder.append(timeStr);
		builder.append("]");
		return builder.toString();
	}
	
}